/*
 * @Description: 定义用户数据模型
 * @Author: zhhuan
 * @LastEditTime: 2024-03-27 17:02:07
 */

const mongoose = require("../db/db")

const Schema = mongoose.Schema(
  {
    username: {
      type: String,
      require: true,
      unique: true
    },
    password: String
  },
  { timestamps: true }
)
const User = mongoose.model("user", Schema)

module.exports = User
